//
//  CLTopicImgCell.m
//  chanlin
//
//  Created by Ryan on 14-12-15.
//  Copyright (c) 2014年 chanlin. All rights reserved.
//

#import "CLTopicImgCell.h"
#import "UIImageView+WebCache.h"

@implementation CLTopicImgCell

- (void)uiInit{
    self.headView=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, GlobleWidth, 100.f)];
    
    
    CALayer *line=[CALayer layer];
    line.backgroundColor=[UIColor whiteColor].CGColor;
    line.frame=CGRectMake(0, 99.f, GlobleWidth, 1);
    [self.headView.layer addSublayer:line];
    
    [self.contentView addSubview:self.headView];
}

- (void)loadTopicData:(CLTopic *)newsList{
    if(_isStrNULL(newsList.thumnail)) return;
    [self.headView sd_setImageWithURL:[NSURL URLWithString:newsList.thumnail]];
}

@end
